package com.hghivln.blog.mapper;

import com.hghivln.blog.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hghivln.blog.pojo.dto.UpdatePwdDto;

/**
 * <p>
 * 管理员表 Mapper 接口
 * </p>
 *
 * @author hghivln
 * @since 2021-09-01
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 根据用户名查询
     */
    SysUser getByUsername(String username);

    /**
     * 修改密码
     */
    void updatePwd(UpdatePwdDto updatePwdDto);
}
